package org.example.tails.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.tails.pojo.Emp;

@Mapper
public interface empMapper {

    @Select("select * from emp where username=#{emp.username} and password=#{emp.password}")
    Emp selectByUsernameAndPassword(@Param("emp") Emp emp);
}
